//***********************************************************************
//*                                                                     *
//*   Copyright (c) 1985-2019, American Megatrends International LLC.   *
//*                                                                     *
//*      All rights reserved. Subject to AMI licensing agreement.       *
//*                                                                     *
//***********************************************************************

#include <AmiPeiLib.h>
#include <OemPeiLib\OemPeiLib.h>

static EFI_PEI_PPI_DESCRIPTOR ChangeCMOS[] =
{
     {
        (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
        &gOemPeiCmosGuid,
        &OemPeiPpi
     }
};

EFI_STATUS OemPeiEntryPoint(
    IN       EFI_PEI_FILE_HANDLE       *FileHandle,
    IN CONST EFI_PEI_SERVICES         **PeiServices 
)
{   EFI_STATUS Status;
  
    Status=(*PeiServices)->InstallPpi (PeiServices, ChangeCMOS);
    if(Status != EFI_SUCCESS ){
    	return Status;
    }
    return EFI_SUCCESS;
};


